<template>
	<view class="d-flex border-bottom bg-white py-1" >
		<view  class="ml-3 d-flex a-center">
			<view v-if="leftIconShow" class="iconfont font-lg " :class="leftcont"  :style="color"></view>
			<text class="font-md ml-1 " @click="bus()">{{title}}</text>
		</view>
		
		<view class="iconfont iconyou1 font-lg ml-auto mr-3 my-1" v-if="rshow"></view>
		<slot name="right"></slot>
	</view>
</template>

<script>
	export default{
		props:{
			leftcont:String,
			color:String,
			title:String,
			leftIconShow:{
				type:Boolean,
				default:true
			},
			rshow:{
				type:Boolean,
				default:true
			}
		},
		methods:{
			bus(){
				this.$emit("goto",'user-set')
				console.log(1)
			}
		}
	}
</script>

<style>
</style>
